package com.changgou.search.feign;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用搜索服务
 * 
 * @author gaofeng
 * @date 2025/4/27 18:55
 */
@FeignClient(name = "search")
@RequestMapping(value = "/search")
public interface SkuFeign {
    /**
     * 根据条件搜索
     * 
     * @param searchMap 查询条件
     * @return 商品的sku信息
     */
    @PostMapping(value = "/queryByParam")
    Map<String, Object> search(@RequestParam(required = false) Map<String, String> searchMap);
}
